
public class Main {

	
	public static void main(String[] args) {

		   Deeds[] deeds = new Deeds[28];
		   Tiles[] tile = new Tiles[40];
		   tile[0]=new Tiles(545,545,0);
		   tile[1]=new Tiles(470,545,1);
		   tile[2]=new Tiles(420,545,2);
		   tile[3]=new Tiles(370,545,3);
		   tile[4]=new Tiles(325,545,4);
		   tile[5]=new Tiles(275,545,5);
		   tile[6]=new Tiles(225,545,6);
		   tile[7]=new Tiles(175,545,7);
		   tile[8]=new Tiles(125,545,8);
		   tile[9]=new Tiles(75,545,9);
		   tile[10]=new Tiles(5,545,10);
		   tile[11]=new Tiles(5,470,11);
		   tile[12]=new Tiles(5,420,12);
		   tile[13]=new Tiles(5,370,13);
		   tile[14]=new Tiles(5,320,14);
		   tile[15]=new Tiles(5,270,15);
		   tile[16]=new Tiles(5,220,16);
		   tile[17]=new Tiles(5,175,17);
		   tile[18]=new Tiles(5,125,18);
		   tile[19]=new Tiles(5,75,19);
		   tile[20]=new Tiles(5,5,20);
		   tile[21]=new Tiles(75,5,21);
		   tile[22]=new Tiles(125,5,22);
		   tile[23]=new Tiles(175,5,23);
		   tile[24]=new Tiles(225,5,24);
		   tile[25]=new Tiles(275,5,25);
		   tile[26]=new Tiles(325,5,26);
		   tile[27]=new Tiles(370,5,27);
		   tile[28]=new Tiles(420,5,28);
		   tile[29]=new Tiles(470,5,29);
		   tile[30]=new Tiles(545,5,30);
		   tile[31]=new Tiles(545,75,31);
		   tile[32]=new Tiles(545,125,32);
		   tile[33]=new Tiles(545,175,33);
		   tile[34]=new Tiles(545,225,34);
		   tile[35]=new Tiles(545,270,35);
		   tile[36]=new Tiles(545,320,36);
		   tile[37]=new Tiles(545,370,37);
		   tile[38]=new Tiles(545,420,38);
		   tile[39]=new Tiles(545,470,39);
		  
		   int group1=1;
		   int group2=2;
		   int group3=3;
		   int group4=4;
		   int group5=5;
		   int group6=6;
		   int group7=7;
		   int group8=8;
		   int group9=9;
		    String name1="Mediterranean Ave"; 
			int cost1=60; 
			int position1=1; 
			int rent1=2;
			
			String name2="Baltic Ave";
			int cost2 = 60;
			int position2=3;
			int rent2=4;
			
			String name3="Reading Railroad";
			int cost3 = 200;
			int position3 = 5;
			int rent3 = 25;
			
			String name4="Oriental Ave";
			int cost4 = 100;
			int position4 = 6;
			int rent4 = 6;
			
			String name5 = "Vermont City";
			int cost5 = 100;
			int position5 =8;
			int rent5 = 6;
			
			String name6 = "Connecticut Ave";
			int cost6 = 120;
			int position6 = 9;
			int rent6 = 8;
			
			String name7 = "St Charles Place";
			int cost7 = 140;
			int position7 = 11;
			int rent7 = 10;

			String name8 ="Electric Company";
			int cost8 = 180;
			int position8 = 12;
			int rent8 = 15;

			String name9 = "States Ave";
			int cost9= 140;
			int position9 = 13;
			int rent9 = 10;
			
			String name10 = "Virginia Ave";
			int cost10 = 160;
			int position10 = 14;
			int rent10 = 12;
			
			String name11 = "Pennsylvania RR";
			int cost11 = 200;
			int position11 = 15;
			int rent11 = 25;
			
			String name12 = "St James Place";
			int cost12 = 180;
			int position12 = 16;
			int rent12 = 14;
			
			String name13 = "Tennesse Ave.";
			int cost13 = 180;
			int position13 = 18;
			int rent13 = 14;
			
			String name14 = "New York Ave";
			int cost14 = 200;
			int position14 = 19;
			int rent14 = 16;
			
			String name15 = "Kentucky Ave.";
			int cost15 = 220;
			int position15 = 21;
			int rent15 = 18;
			
			String name16 = "Indiana Ave";
			int cost16 = 220;
			int position16 = 23;
			int rent16 = 18;
			
			String name17 = "Illinois Ave";
			int cost17 = 240;
			int position17 = 24;
			int rent17 = 20;
			
			String name18 = "B&O RR";
			int cost18 = 200;
			int position18 = 25;
			int rent18 = 25;
			
			String name19 = "Atlantic Ave.";
			int cost19 = 260;
			int position19 = 26;
			int rent19 = 22;
			
			String name20 = "Ventor Ave.";
			int cost20 = 260;
			int position20 = 27;
			int rent20 = 22;
			
			String name21 = "Water Works";
			int cost21 = 100;
			int position21 = 28;
			int rent21 = 10; 
			
			String name22 = "Marvin Gardens";
			int cost22 = 280;
			int position22 = 29;
			int rent22 = 22;
			
			String name23 = "Pacific Ave.";
			int cost23 = 300;
			int position23 = 31;
			int rent23 = 26;
			
			String name24 = "NTH Carolina Ave.";
			int cost24 = 300;
			int position24 = 32;
			int rent24= 26;
			
			String name25 = "Penssylvanna Ave.";
			int cost25 = 320;
			int position25 = 34;
			int rent25  =  28;
			
			String name26 = "Short Line RR";
			int cost26 = 200;
			int position26 = 35;
			int rent26 = 25;
			
			String name27 = "Park Place";
			int cost27 = 380;
			int position27 = 37;
			int rent27 = 35;
			
			String name28 = "Board Walk";
			int cost28 = 400;
			int position28 = 39;
			int rent28  = 50;
			
			
			deeds[0]=new Deeds( group1,name1,  cost1,  position1,  rent1);
			deeds[1]=new Deeds( group1,name2,  cost2,  position2,  rent2);
			deeds[2]=new Deeds(group9, name3,  cost3,  position3,  rent3);
			deeds[3]=new Deeds( group2,name4,  cost4,  position4,  rent4);
			deeds[4]=new Deeds( group2,name5,  cost5,  position5,  rent5);
			deeds[5]=new Deeds( group2,name6,  cost6,  position6,  rent6);
			deeds[6]=new Deeds( group3,name7,  cost7,  position7,  rent7);
			deeds[7]=new Deeds( group9,name8,  cost8,  position8,  rent8);
			deeds[8]=new Deeds( group3,name9,  cost9,  position9,  rent9);
			deeds[9]=new Deeds( group3,name10,  cost10,  position10,  rent10);
			deeds[10]=new Deeds(group9, name11,  cost11,  position11,  rent11);
			deeds[11]=new Deeds(group4, name12,  cost12,  position12,  rent12);
			deeds[12]=new Deeds( group4,name13,  cost13,  position13,  rent13);
			deeds[13]=new Deeds( group4,name14,  cost14,  position14,  rent14);
			deeds[14]=new Deeds( group5,name15,  cost15,  position15,  rent15);
			deeds[15]=new Deeds(group5, name16,  cost16,  position16,  rent16);
			deeds[16]=new Deeds(group5, name17,  cost17,  position17,  rent17);
			deeds[17]=new Deeds( group9,name18,  cost18,  position18,  rent18);
			deeds[18]=new Deeds( group6,name19,  cost19,  position19,  rent19);
			deeds[19]=new Deeds( group6,name20,  cost20,  position20,  rent20);
			deeds[20]=new Deeds(group9, name21,  cost21,  position21,  rent21);
			deeds[21]=new Deeds( group6,name22,  cost22,  position22,  rent22);
			deeds[22]=new Deeds( group7,name23,  cost23,  position23,  rent23);
			deeds[23]=new Deeds( group7,name24,  cost24,  position24,  rent24);
			deeds[24]=new Deeds( group7,name25,  cost25,  position25,  rent25);
			deeds[25]=new Deeds( group9,name26,  cost26,  position26,  rent26);
			deeds[26]=new Deeds( group8,name27,  cost27,  position27,  rent27);
			deeds[27]=new Deeds( group8,name28,  cost28,  position28,  rent28);
			
		   

		   MonopolyBoard board = new MonopolyBoard(tile, deeds);
		   
			
		   GUI start = new GUI(board, tile,deeds);
		   PropertyEvent property = new PropertyEvent(start);
		   start.Start(property);
		   
		   
		   
		    
		  }

}
